.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 全局样式 */
.layout {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f2f5 0%, #e6f7ff 100%);
  position: relative;
  overflow: hidden;
}

/* 背景装饰 */
.layout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(90deg, #1890ff 0%, #096dd9 100%);
  transform: skewY(-3deg);
  transform-origin: 0;
  z-index: 0;
}

/* 头部样式 */
.header {
  position: relative;
  background: transparent;
  padding: 30px 0;
  text-align: center;
  z-index: 1;
}

.title {
  color: white;
  margin: 0;
  padding: 15px 0;
  font-size: 36px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Microsoft YaHei", sans-serif;
}

.title::before,
.title::after {
  content: '★';
  font-size: 24px;
  margin: 0 15px;
  color: rgba(255, 255, 255, 0.8);
}

/* 内容区域样式 */
.content {
  position: relative;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 1;
}

/* 登录卡片样式 */
.login-card {
  width: 420px;
  margin-top: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border: none;
  overflow: hidden;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

/* 卡片标题样式 */
.ant-card-head {
  border-bottom: none;
  padding: 0 32px;
  background: #fafafa;
}

.ant-card-head-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #1890ff;
  padding: 24px 0;
  position: relative;
}

.ant-card-head-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #1890ff;
  border-radius: 2px;
}

/* 表单容器 */
.ant-card-body {
  padding: 32px;
}

/* 表单样式 */
.ant-form-item {
  margin-bottom: 28px;
}

.ant-form-item-label > label {
  font-weight: 500;
  color: #333;
}

.ant-input-affix-wrapper {
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s;
  height: 48px;
  background: #f8f9fa;
}

.ant-input-affix-wrapper:hover {
  border-color: #40a9ff;
  background: #fff;
}

.ant-input-affix-wrapper-focused {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
  background: #fff;
}

/* 下拉选择框样式 */
.ant-select {
  width: 100%;
}

.ant-select-selector {
  border-radius: 8px !important;
  height: 48px !important;
  padding: 8px 16px !important;
  background: #f8f9fa !important;
  border: 1px solid #e8e8e8 !important;
}

.ant-select-selector:hover {
  border-color: #40a9ff !important;
  background: #fff !important;
}

.ant-select-focused .ant-select-selector {
  border-color: #1890ff !important;
  box-shadow: 0 0 0 2px rgba(24,144,255,0.2) !important;
  background: #fff !important;
}

/* 按钮样式 */
.ant-btn {
  height: 48px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.ant-btn-primary {
  background: linear-gradient(45deg, #1890ff, #40a9ff);
  border: none;
  box-shadow: 0 8px 16px rgba(24,144,255,0.3);
}

.ant-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(24,144,255,0.4);
  background: linear-gradient(45deg, #40a9ff, #69c0ff);
}

/* 响应式设计 */
@media (max-width: 576px) {
  .layout::before {
    height: 150px;
  }

  .login-card {
    width: 90%;
    margin: 20px auto;
  }
  
  .title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .title::before,
  .title::after {
    font-size: 18px;
    margin: 0 10px;
  }
  
  .ant-card-head-title {
    font-size: 20px;
    padding: 20px 0;
  }

  .ant-card-body {
    padding: 24px;
  }
  
  .content {
    padding: 10px;
  }
}
